package com.hspedu.newData.dmsxl.数组;

import org.junit.Test;

/**
 * @Author: yh
 * @description: 
 * @CreateTime: 2025-05-28 
 * @Version: 1.0
 */

public class LC2678老人的数目 {

    public int countSeniors(String[] details) {

        int i = 0;
        for (String detail : details) {
            if (Integer.valueOf(detail.substring(12,13)) > 60){
                i++;
            }
        }
        return i;
    }

    @Test
    public void test() {
        // 测试代码
        String s = "7868190130M7522";
        System.out.println(Integer.valueOf(s.substring(11,13)));

    }
}
